# -*- coding:utf-8 -*-
# @Time: 2020-08-29 18:05
# @Author: aniu
# @File: route.py

'''
    蓝图功能，对所有的url进行蓝图功能配置
'''
from application import app
from web.controller.test import tests
from web.controller.user.login import login_index

MODULES = (
    (login_index, '/'),
    (tests, '/'),
)


def setting_modules(app, modules):
    """ 注册Blueprint模块 """
    for module, url_prefix in modules:
        app.register_blueprint(module, url_prefix=url_prefix)


setting_modules(app, MODULES)